package com.upf1sh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.upf1sh.bean.SensorData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface SensorMapper extends BaseMapper<SensorData> {

    @Select("select * from sensorData order by id DESC limit #{pageStart},#{pageSize}")
    List<SensorData> selectSensorDataList(Integer pageSize, Integer pageStart);
}
